package entity.common;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 订单详情表
 * </p>
 *
 * @author admin
 * @since 2020-02-17
 */
@Data
@TableName("t_order_details")
public class OrderDetails implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 订单id
     */
    @TableField("order_id")
    private Integer orderId;

    /**
     * 订单号
     */
    @TableField("order_number")
    private String orderNumber;

    /**
     * 菜品id
     */
    @TableField("vegetable_id")
    private Integer vegetableId;

    /**
     * 菜品名称
     */
    @TableField("vegetable_name")
    private String vegetableName;

    /**
     * 菜品url
     */
    @TableField("vegetable_url")
    private String vegetableUrl;

    /**
     * 菜品价格
     */
    @TableField("vegetable_price")
    private Double vegetablePrice;

    /**
     * 购买数量
     */
    @TableField("vegetable_count")
    private Integer vegetableCount;

    @TableField("create_time")
    private String createTime;

    @TableField("update_time")
    private String updateTime;

}
